//
//  ViewController.swift
//  NTBuildSwift
//
//  Created by Marcus Yu on 2022/1/6.
//

import UIKit
import PromiseKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
        
        
        
    }
    
    func cook() -> Promise<String> {
        
        let promise = Promise<String>({
            
        })
        
        
        DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 1) {
            debugPrint("开始做饭")
        }
        return ""
    }


}

